﻿using System.Windows;
using System.Windows.Controls;
using NathansMapInfoProjects.WindowManager.ViewModels;

namespace NathansMapInfoProjects.WindowManager.Views
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class ShellView : UserControl
    {
        public ShellView(ShellViewModel viewmodel)
        {
            InitializeComponent();

            this.Loaded += (s, e) =>
                {
                    this.DataContext = viewmodel;
                    viewmodel.OpenWindows.Refresh.Execute(null);
                };
        }
    }
}
